package com.streamax.s17.mqs.api.model.dto;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description 消息检索返回传输对象
 * @ClassName MsgRetrieveDTO
 * @Author liwei
 * @Date 2019/8/13 17:22
 * @Version 2.0.2
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel("消息检索-返回对象")
public class MsgRetrieveDTO {
    private String time;
    private String serviceInstanceId;
    private String channel;
    private String devId;
    private String sendTo;
    private String cmd;
    private String occurTime;
//    private long occurTimeVal;
    private String protocolType;
    private String content;
    @Override
    public String toString(){
        return "检索结果 = {" +
                "time = " + time +
                "serviceInstanceId = " + serviceInstanceId +
                "devId = " + devId +
                "sendTo = " + sendTo +
                "cmd = " + cmd +
                "occurTime = " + occurTime +
                "protocolType = " + protocolType +
                "content = " + content +
                "}";
    }
}
